package com.maidada.codesharebackend.model.dto.tag;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 标签修改请求
 *
 * @author wulinxuan
 */
@Data
public class TagUpdateRequest implements Serializable {

    /**
     * ID
     */
    @NotNull(message = "id不能为空")
    private Long id;

    /**
     * 父标签id，null表示无父标签
     */
    private Long parentId;

    /**
     * 标签名
     */
    private String name;

    private static final long serialVersionUID = 1L;
}

